var config = {
      /**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
  set_url:{
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
  },


  /**
   * 表格操作按钮配置
   * @type {Array}
   */
  action:[{
    label:"新增",
    type:"primary",
    icon:"",
    callback:{
      type:"target",
      path:"/empty",
    }
  },{
    label:"刷新",
    type:"default",
    icon:"",
    callback:{
      type:"target",
      path:"/empty",
    }
  }],

  /**
   * 表格配置
   * @type {Boolean}
   */
  selection:true,
  model:"input",
  table:[{
    label:"操作",
    type:"action",
    field:"action",
    sortable:false,
    labelWidth:100,
    option:[{
      label:"修改",
      type:"default",
      icon:"el-icon-edit",
      callback:{
        type:"target",
        params: ['goods_id', 'goods_sn']
      }
    },{
            label: "删除",
            callback: {
                type: 'message',
                url: ['goods', 'on_goods_delete'],
                params: ['goods_id'],
                config: {
                    type: 'warning',
                    title: '系统提示',
                    content: '此操作将永久删除删除文件不可恢复，是否继续！',
                    confirm: '继续',
                    cancel: '取消',
                    confirmTips: {
                        type: 'success',
                        message: '删除成功！',
                    },
                    cancelTips: {
                        type: 'info',
                        message: '您取消了删除！',
                    }
                }
            },
            type: "primary",
            icon: "el-icon-delete",
        }]
  },{
        label: "地址简称",
        type: "input",
        field: "addres_referred",
        labelWidth:180,
        sortable: false,
        amend:false,
  },{
        label: "联系人",
        type: "input",
        field: "address_person",
        labelWidth:160,
        sortable: false,
        amend:false,
  },{
        label: "联系电话",
        type: "input",
        field: "address_mobile",
        labelWidth:160,
        sortable: false,
        amend:false,
  },{
        label: "手机号码",
        type: "input",
        field: "address_tel",
        labelWidth:200,
        sortable: false,
        amend:false,
  },{
        label: "省",
        type: "input",
        field: "address_province",
        labelWidth:80,
        sortable: false,
        amend:false,
  },{
        label: "市",
        type: "input",
        field: "address_city",
        labelWidth:80,
        sortable: false,
        amend:false,
  },{
        label: "区",
        type: "input",
        field: "address_area",
        labelWidth:80,
        sortable: false,
        amend:false,
  },{
        label: "详细地址",
        type: "input",
        field: "address_detailed",
        labelWidth:210,
        sortable: false,
        amend:false,
  },{
        label: "邮政编码",
        type: "input",
        field: "address_zipcode",
        labelWidth:120,
        sortable: false,
        amend:false,
  },{
        label: "默认地址",
        type: "input",
        field: "address_default",
        labelWidth:210,
        sortable: false,
        amend:false,
  }],


  /**
   * 分页配置
   * @type {Object}
   */
  page:{
        size: 10,
        current: 1,
        total: 100
  }


}
export default config;